<!DOCTYPE html>
<html lang="en">

<head>

    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="">
    <meta name="author" content="">

    <title><?php echo $title; ?></title>

    <!-- Bootstrap Core CSS -->
    <link href="http://cdn.static.runoob.com/libs/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">

    <!-- MetisMenu CSS -->
    <link href="sb2/vendor/metisMenu/metisMenu.min.css" rel="stylesheet">

    <!-- Custom CSS -->
    <link href="sb2/dist/css/sb-admin-2.css" rel="stylesheet">

    <!-- Custom Fonts -->
    <link href="sb2/vendor/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css">

    <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
        <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
        <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->

</head>

<body>

    <div id="wrapper">

        <!-- Navigation -->
        <nav class="navbar navbar-default navbar-static-top" role="navigation" style="margin-bottom: 0">
            <div class="navbar-header">
                <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
                    <span class="sr-only">菜单</span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </button>
                <img alt="" src="img/people.png" class="img-circle" width="50" height="50">
                <a class="navbar-brand" href="<?php echo $_url; ?>"><?php echo $title; ?>(登录321次)</a>
            </div>
            <!-- /.navbar-header -->

            <ul class="nav navbar-top-links navbar-right">
                <li class="dropdown">
                    <a class="dropdown-toggle" data-toggle="dropdown" href="#">
                        <i class="fa fa-envelope fa-fw"></i> <i class="fa fa-caret-down"></i>
                    </a>
                    <ul class="dropdown-menu dropdown-messages">
                        <li>
                            <a href="#">
                                <div>
                                    <strong>John Smith</strong>
                                    <span class="pull-right text-muted">
                                        <em>Yesterday</em>
                                    </span>
                                </div>
                                <div>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque eleifend...</div>
                            </a>
                        </li>
                        <li class="divider"></li>
                        <li>
                            <a href="#">
                                <div>
                                    <strong>John Smith</strong>
                                    <span class="pull-right text-muted">
                                        <em>Yesterday</em>
                                    </span>
                                </div>
                                <div>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque eleifend...</div>
                            </a>
                        </li>
                        <li class="divider"></li>
                        <li>
                            <a href="#">
                                <div>
                                    <strong>John Smith</strong>
                                    <span class="pull-right text-muted">
                                        <em>Yesterday</em>
                                    </span>
                                </div>
                                <div>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque eleifend...</div>
                            </a>
                        </li>
                        <li class="divider"></li>
                        <li>
                            <a class="text-center" href="#">
                                <strong>全部信息</strong>
                                <i class="fa fa-angle-right"></i>
                            </a>
                        </li>
                    </ul>
                    <!-- /.dropdown-messages -->
                </li>
                <!-- /.dropdown -->
                <li class="dropdown">
                    <a class="dropdown-toggle" data-toggle="dropdown" href="#">
                        <i class="fa fa-tasks fa-fw"></i> <i class="fa fa-caret-down"></i>
                    </a>
                    <ul class="dropdown-menu dropdown-tasks">
                        <li>
                            <a href="#">
                                <div>
                                    <p>
                                        <strong>Task 1</strong>
                                        <span class="pull-right text-muted">40% Complete</span>
                                    </p>
                                    <div class="progress progress-striped active">
                                        <div class="progress-bar progress-bar-success" role="progressbar" aria-valuenow="40" aria-valuemin="0" aria-valuemax="100" style="width: 40%">
                                            <span class="sr-only">40% Complete (success)</span>
                                        </div>
                                    </div>
                                </div>
                            </a>
                        </li>
                        <li class="divider"></li>
                        <li>
                            <a href="#">
                                <div>
                                    <p>
                                        <strong>Task 2</strong>
                                        <span class="pull-right text-muted">20% Complete</span>
                                    </p>
                                    <div class="progress progress-striped active">
                                        <div class="progress-bar progress-bar-info" role="progressbar" aria-valuenow="20" aria-valuemin="0" aria-valuemax="100" style="width: 20%">
                                            <span class="sr-only">20% Complete</span>
                                        </div>
                                    </div>
                                </div>
                            </a>
                        </li>
                        <li class="divider"></li>
                        <li>
                            <a href="#">
                                <div>
                                    <p>
                                        <strong>Task 3</strong>
                                        <span class="pull-right text-muted">60% Complete</span>
                                    </p>
                                    <div class="progress progress-striped active">
                                        <div class="progress-bar progress-bar-warning" role="progressbar" aria-valuenow="60" aria-valuemin="0" aria-valuemax="100" style="width: 60%">
                                            <span class="sr-only">60% Complete (warning)</span>
                                        </div>
                                    </div>
                                </div>
                            </a>
                        </li>
                        <li class="divider"></li>
                        <li>
                            <a href="#">
                                <div>
                                    <p>
                                        <strong>Task 4</strong>
                                        <span class="pull-right text-muted">80% Complete</span>
                                    </p>
                                    <div class="progress progress-striped active">
                                        <div class="progress-bar progress-bar-danger" role="progressbar" aria-valuenow="80" aria-valuemin="0" aria-valuemax="100" style="width: 80%">
                                            <span class="sr-only">80% Complete (danger)</span>
                                        </div>
                                    </div>
                                </div>
                            </a>
                        </li>
                        <li class="divider"></li>
                        <li>
                            <a class="text-center" href="#">
                                <strong>See All Tasks</strong>
                                <i class="fa fa-angle-right"></i>
                            </a>
                        </li>
                    </ul>
                    <!-- /.dropdown-tasks -->
                </li>
                <!-- /.dropdown -->
                <li class="dropdown">
                    <a class="dropdown-toggle" data-toggle="dropdown" href="#">
                        <i class="fa fa-bell fa-fw"></i> <i class="fa fa-caret-down"></i>
                    </a>
                    <ul class="dropdown-menu dropdown-alerts">
                        <li>
                            <a href="#">
                                <div>
                                    <i class="fa fa-comment fa-fw"></i> New Comment
                                    <span class="pull-right text-muted small">4 minutes ago</span>
                                </div>
                            </a>
                        </li>
                        <li class="divider"></li>
                        <li>
                            <a href="#">
                                <div>
                                    <i class="fa fa-twitter fa-fw"></i> 3 New Followers
                                    <span class="pull-right text-muted small">12 minutes ago</span>
                                </div>
                            </a>
                        </li>
                        <li class="divider"></li>
                        <li>
                            <a href="#">
                                <div>
                                    <i class="fa fa-envelope fa-fw"></i> Message Sent
                                    <span class="pull-right text-muted small">4 minutes ago</span>
                                </div>
                            </a>
                        </li>
                        <li class="divider"></li>
                        <li>
                            <a href="#">
                                <div>
                                    <i class="fa fa-tasks fa-fw"></i> New Task
                                    <span class="pull-right text-muted small">4 minutes ago</span>
                                </div>
                            </a>
                        </li>
                        <li class="divider"></li>
                        <li>
                            <a href="#">
                                <div>
                                    <i class="fa fa-upload fa-fw"></i> Server Rebooted
                                    <span class="pull-right text-muted small">4 minutes ago</span>
                                </div>
                            </a>
                        </li>
                        <li class="divider"></li>
                        <li>
                            <a class="text-center" href="#">
                                <strong>See All Alerts</strong>
                                <i class="fa fa-angle-right"></i>
                            </a>
                        </li>
                    </ul>
                    <!-- /.dropdown-alerts -->
                </li>
                <!-- /.dropdown -->
                <li class="dropdown">
                    <a class="dropdown-toggle" data-toggle="dropdown" href="#">
                        <i class="fa fa-user fa-fw"></i>徐秀峰 <i class="fa fa-caret-down"></i>
                    </a>
                    <ul class="dropdown-menu dropdown-user">
                        <li><a href="javascript:navObj.userinfo();"><i class="fa fa-user fa-fw"></i> 用户信息</a>
                        </li>
                        <li><a href="javascript:navObj.setting();"><i class="fa fa-gear fa-fw"></i> 设置</a>
                        </li>
                        <li class="divider"></li>
                        <li><a href="<?php echo $_url; ?>out"><i class="fa fa-sign-out fa-fw"></i> 安全退出</a>
                        </li>
                    </ul>
                    <!-- /.dropdown-user -->
                </li>
                <!-- /.dropdown -->
            </ul>
            <!-- /.navbar-top-links -->

            <div class="navbar-default sidebar" role="navigation">
                <div class="sidebar-nav navbar-collapse">
                    <ul class="nav" id="side-menu">
                        <li class="sidebar-search">
                            <div class="input-group custom-search-form">
                                <input type="text" class="form-control" placeholder="搜索...">
                                <span class="input-group-btn">
                                    <button class="btn btn-default" type="button">
                                        <i class="fa fa-search"></i>
                                    </button>
                                </span>
                            </div>
                            <!-- /input-group -->
                        </li>
                                                <li>
                           	<a href="/?admin" ><i class="fa fa-edit fa-fw"></i> 首页</a>
                        </li>
                                                <li>
                           	<a href="/?sysUserManager" ><i class="fa fa-table fa-fw"></i> 用户管理</a>
                        </li>
                                                <li>
                           	<a href="/?sysQxManager" ><i class="fa fa-fw fa-dashboard"></i> 权限管理</a>
                        </li>
                                                <li>
                           	<a href="/?groupManager" ><i class="fa fa-fw fa-dashboard"></i> 群组管理</a>
                        </li>
                                                <li>
                           	<a href="/?wBook" ><i class="fa fa-bar-chart-o fa-fw"></i> 教职工通讯录</a>
                        </li>
                                                <li>
                           	<a href="/?toDoPrivate" ><i class="fa fa-sitemap fa-fw"></i> 私人待办事项</a>
                        </li>
                                                <li>
                           	<a href="/?upSchoolRoll" ><i class="fa fa-wrench fa-fw"></i> 学生信息上传</a>
                        </li>
                                                <li>
                           	<a href="/?schoolRollManager" ><i class="fa fa-wrench fa-fw"></i> 学生信息管理</a>
                        </li>
                                                <li>
                           	<a href="/?stuEventManager" ><i class="fa fa-wrench fa-fw"></i> 学生事务管理</a>
                        </li>
                                            </ul>
                </div>
                <!-- /.sidebar-collapse -->
            </div>
            <!-- /.navbar-static-side -->
        </nav>    
<!-- DataTables Responsive CSS -->
    <link href="sb2/vendor/datatables-responsive/dataTables.responsive.css" rel="stylesheet">
    <link href="css/multi-select.css" media="screen" rel="stylesheet" type="text/css">
        <!-- Page Content -->
        <div id="page-wrapper">
            <div class="container-fluid">
                <div class="row">
                <div class="col-lg-12">
                    <div class="panel panel-default">
                        <div class="panel-heading">
                            群组管理
                            <button id=build type=button class='btn btn-success' data-toggle='modal'  onclick='append()'><span class='glyphicon glyphicon-plus' aria-hidden='true'></span>添加</button>&nbsp;                        </div>
                        <!-- /.panel-heading -->
                        <div class="panel-body">
                            <table width="100%" class="table table-striped table-bordered table-hover" id="dataTables-example">
                                <thead>
                                    <tr>
                                        <th>群组号</th>
                                        <th>群名称</th>
                                        <th>成员数</th>
                                        <th>创建时间</th>
                                    <th>操作</th>                                    </tr>
                                </thead>
                                <tbody>
                                	                                    <tr class="odd gradeA" id='2'>
                                    	<td>2</td>
                                        <td><a href='javascript:sel(2)'>教研活动参与人员</a></td>
                                        <td>9 <a href="javascript:sendsms(2)"><i class="fa fa-envelope fa-fw"></i></a></td>
                                        <td>2016-12-07 08:33:23</td>
                                    	<td><a href='javascript:del(2)' class='glyphicon glyphicon-minus-sign' role='menuitem' tabindex='-1' style='color:red;'></a></td>                                    </tr>
                                	                                    <tr class="even gradeA" id='3'>
                                    	<td>3</td>
                                        <td><a href='javascript:sel(3)'>信息教研组成员</a></td>
                                        <td>4 <a href="javascript:sendsms(3)"><i class="fa fa-envelope fa-fw"></i></a></td>
                                        <td>2016-12-07 09:28:55</td>
                                    	<td><a href='javascript:del(3)' class='glyphicon glyphicon-minus-sign' role='menuitem' tabindex='-1' style='color:red;'></a></td>                                    </tr>
                                	                                </tbody>
                            </table>
                        </div>
                        <!-- /.panel-body -->
                    </div>
                    <!-- /.panel -->
                </div>
                <!-- /.col-lg-12 -->
            </div>
            <!-- /.row -->
            
             </div>
        </div>
    
        <!-- /#page-wrapper -->
  <div class="modal fade" id="m">
  	<div class="modal-dialog" style="width:350px;">
  		<div class="modal-content">
  			<div class="modal-header">
  				<h4 class="modal-title btn-success">创建群组</h4>
  			</div>
  			<form  id="form">
  			<div class="modal-body">
  					<fieldset>
  						<div class="form-group">
  							<label>群组名称</label>
  							<input type="text" id="gname" name="gname" class="form-control" placeholder="内容限定100字" required autocomplete="off">
  						</div>
  					</fieldset>
  			</div>
  			<div class="modal-footer" >
  				<button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
  				<button type="submit" class="btn btn-primary">保存</button>
  			</div>
  			</form>
  		</div>
  	</div>
  </div>
  
   <div class="modal fade" id="m1">
  	<div class="modal-dialog" style="width:350px;">
  		<div class="modal-content">
  			<div class="modal-header">
  				<h4 class="modal-title btn-success">添加该群组成员</h4>
  			</div>
  			<form  id="form1">
  			<div class="modal-body">
				<select multiple="multiple" id="my-select" name="myselect[]">
                                        <option value='341'>陈晓彬 办公室</option>
                	                    <option value='342'>夏庆宁 办公室</option>
                	                    <option value='343'>冯明伟 办公室</option>
                	                    <option value='344'>陈勇 办公室</option>
                	                    <option value='345'>刘敏慧 办公室</option>
                	                    <option value='346'>冯长明 办公室</option>
                	                    <option value='347'>邹浪花 办公室</option>
                	                    <option value='348'>舒梅 办公室</option>
                	                    <option value='349'>刘美铃 办公室</option>
                	                    <option value='350'>杨胜坤 办公室</option>
                	                    <option value='351'>刘红宇 办公室</option>
                	                    <option value='352'>陈阵 办公室</option>
                	                    <option value='353'>张明 办公室</option>
                	                    <option value='354'>刘小兵 办公室</option>
                	                    <option value='399'>骆世平 学生保卫科</option>
                	                    <option value='400'>付忠 学生保卫科</option>
                	                    <option value='401'>李欣键 学生保卫科</option>
                	                    <option value='402'>涂秀凤 学生保卫科</option>
                	                    <option value='403'>李佳颐 学生保卫科</option>
                	                    <option value='404'>李世波 学生保卫科</option>
                	                    <option value='405'>吕静 学生保卫科</option>
                	                    <option value='406'>卢秋琳 学生保卫科</option>
                	                    <option value='407'>傅成波 学生保卫科</option>
                	                    <option value='408'>龙辉娥 学生保卫科</option>
                	                    <option value='409'>雷鸣 学生保卫科</option>
                	                    <option value='410'>李丹 学生保卫科</option>
                	                    <option value='359'>冉崇芳 总务科</option>
                	                    <option value='360'>罗玉华 总务科</option>
                	                    <option value='361'>章咏梅 总务科</option>
                	                    <option value='362'>吴康 总务科</option>
                	                    <option value='363'>王浩宇 招生就业办公室</option>
                	                    <option value='364'>刘涛 招生就业办公室</option>
                	                    <option value='365'>郑玮 教培科</option>
                	                    <option value='366'>崔文俊 教培科</option>
                	                    <option value='367'>杨练 教培科</option>
                	                    <option value='368'>夏娟 教培科</option>
                	                    <option value='369'>徐秀峰 教培科</option>
                	                    <option value='370'>唐新春 教培科</option>
                	                    <option value='371'>余秋轩 教培科</option>
                	                    <option value='372'>魏恒 教培科</option>
                	                    <option value='373'>王千 教培科</option>
                	                    <option value='374'>梁灏 教培科</option>
                	                    <option value='375'>雷洪波 教培科</option>
                	                    <option value='376'>邹小平 教培科</option>
                	                    <option value='377'>刘承云 教培科</option>
                	                    <option value='378'>姚毅 教培科</option>
                	                    <option value='379'>杨本杰 教培科</option>
                	                    <option value='380'>夏正洋 教培科</option>
                	                    <option value='381'>陈超 教培科</option>
                	                    <option value='382'>杨志刚 教培科</option>
                	                    <option value='383'>赵达智 教培科</option>
                	                    <option value='384'>侯敏 教培科</option>
                	                    <option value='385'>陈玉婷 教培科</option>
                	                    <option value='386'>代耀华 教培科</option>
                	                    <option value='387'>谭秋璨 教培科</option>
                	                    <option value='388'>陶婷婷 教培科</option>
                	                    <option value='389'>徐欢 教培科</option>
                	                    <option value='390'>杜思维 教培科</option>
                	                    <option value='391'>杨雅雯 教培科</option>
                	                    <option value='392'>杨柯 教培科</option>
                	                    <option value='393'>罗光亮 教培科</option>
                	                    <option value='394'>陈丽 教培科</option>
                	                    <option value='395'>杜思勇 教培科</option>
                	                    <option value='396'>宋凌燕 教培科</option>
                	                    <option value='397'>刘春梅 教培科</option>
                	                    <option value='398'>陈蓉 教培科</option>
                	                    <option value='355'>刘力维 财务科</option>
                	                    <option value='356'>王鸿娅 财务科</option>
                	                    <option value='357'>刘然 财务科</option>
                	                    <option value='358'>周鹏 财务科</option>
                	                </select>
  			</div>
  			<div class="modal-footer" >
  				<button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
  				<button type="submit" class="btn btn-primary">更改</button>
  				<input type="hidden" name="gid" id="gid" value="0">
  			</div>
  			</form>
  		</div>
  	</div>
  </div>
        <!-- DataTables JavaScript -->
    </div>
    <!-- /#wrapper -->

    <!-- jQuery -->
    <script src="http://cdn.static.runoob.com/libs/jquery/2.1.1/jquery.min.js"></script>

    <!-- Bootstrap Core JavaScript -->
    <script src="http://cdn.static.runoob.com/libs/bootstrap/3.3.7/js/bootstrap.min.js"></script>

    <!-- Metis Menu Plugin JavaScript -->
    <script src="sb2/vendor/metisMenu/metisMenu.min.js"></script>

    <!-- Custom Theme JavaScript -->
    <script src="sb2/dist/js/sb-admin-2.js"></script>

    <script src=js/jquery.xxfset.js></script>
    <script src=js/jquery.form.js></script>
    <script src=js/app.js></script>
<script type="text/javascript">
    var navObj={
    		setting:function(){
    			var str="原密码：<input type='password' name='sys_ypwd' id='sys_ypwd'><br><br>新密码：<input type='password' name='sys_xpwd' id='sys_xpwd'><br><br>";
    			str+="<button class='btn btn-info btn-xs'  id='sys_yes'>确定</button>&nbsp;&nbsp;<button class='btn btn-default btn-xs'  id='sys_close'>取消</button>";
    			$.xcontent(str,function(){
    				$("#sys_close").click(function(){
    					$("#XPOPUPCONTENTC").remove();
    					$("#XPOPUPCONTENT").remove();
    				});
    				$("#sys_yes").click(function(){
    					$ymm=$("#sys_ypwd").val();
    					$xmm=$("#sys_xpwd").val();
    					if($ymm.length<1||$xmm.length<1){
    						$.xalert("信息不能为空！");
    						return;
    					}else{
    						$.xloading(1);
    						$.post($.gu("setting"),{ymm:$ymm,xmm:$xmm,type:'setting'},function(data){
    							$.xloading(0);
    							if(data==0){
    								$.xalert("原密码错误，请重试！");
    							}else if(data==1){
    								alert("密码更新成功，请重新登陆！");
    								location.href=$.gu("out");
    							}else{alert(data);}
    						});
    					}
    				});
    			});
    		},
    		userinfo:function(){
    			var str="真实姓名：<input type='text' name='sys_rname' id='sys_rname' value='徐秀峰'><br><br>";
    			str+="<button class='btn btn-info btn-xs'  id='sys_yes'>确定</button>&nbsp;&nbsp;<button class='btn btn-default btn-xs'  id='sys_close'>取消</button>";
    			$.xcontent(str,function(){
    				$("#sys_close").click(function(){
    					$("#XPOPUPCONTENT").remove();$("#XPOPUPCONTENTC").remove();
    				});
    				$("#sys_yes").click(function(){
    					$rname=$("#sys_rname").val();
    					if($rname.length<2){
    						$.xalert("信息请填写完整！");
    						return;
    					}else{
    						$.xloading(1);
    						$.post($.gu("setting"),{rname:$rname,type:'userinfo'},function(data){
    							$.xloading(0);
    							if(data==0){
    								$.xalert("信息修改失败，请重试！");
    							}else if(data==1){
    								alert("更新成功！");
    								window.location.reload();
    							}else{alert(data);}
    						});
    					}
    				});
    			});
            }
    }
</script>
</body>

</html>    <script src="sb2/vendor/datatables/js/jquery.dataTables.js"></script>
    <script src="sb2/vendor/datatables-plugins/dataTables.bootstrap.min.js"></script>
    <script src="sb2/vendor/datatables-responsive/dataTables.responsive.js"></script>
    <script src="js/jquery.multi-select.js" type="text/javascript"></script>
    <script>
    $(document).ready(function() {
    	$('#my-select').multiSelect({
        	selectableHeader: "<div class='custom-header'>待选择人员</div>",
        	selectionHeader: "<div class='custom-header'>已选人员</div>"
			  });
        $('#dataTables-example').DataTable({
            responsive: true,
            "aaSorting": [[ 0, "desc" ]]
        });
        var options = {
                type: 'post',
                data:{'type':'ins'},
    		    url:$.gu("groupManager"),
    		    beforeSubmit:function(){
    		    	if($("#gname").val().length==0||$("#gname").val().length>200){
    		    		$.xalert("请正确填写信息！");
    		    		return false;
    		    	}
    		    	$.xloading(1);
    		    },
    		    success: function(data) {
    		    	$.xloading(0);
    		    	if(data==0){
    			    	$.xalert('该信息已存在，无需再添加！');
    		    	}else if(data==1){
    		    		window.location.reload();
    		    	}else{
    		    		alert(data);
    		    	}
    		    } }; 
    	$('#form').ajaxForm(options);
    	
    	var options1 = {
                type: 'post',
                data:{'type':'groupUpdate'},
    		    url:$.gu("groupManager"),
    		    beforeSubmit:function(){
    		    	if($("#my-select").val()==null){
						$.xalert("信息不能为空！");
						return false;
        		    }
    		    },
    		    success: function(data) {
    		    	$.xloading(0);
    		    	if(data==0){
    			    	$.xalert('该信息已存在，无需再添加！');
    		    	}else if(data==1){
    		    		window.location.reload();
    		    	}else{
    		    		$.xalert(data);
    		    	}
    		    } }; 
    	$('#form1').ajaxForm(options1);
    });
    
    function append(){
    	$("#m").modal({backdrop:"static",keyboard:false,show:true}).on("hide.bs.modal",function(){$("#form").resetForm();});
    }
    function update(id){
    	$("#form1").resetForm();
    	$("#m1").modal({backdrop:"static",keyboard:false,show:true});
    	$("#id").val(id);
    	$("#content1").val($("#"+id+" td:eq(1)").text());
    	$("#btime1").val($("#"+id+" td:eq(2)").text());
    	$("input[name='level1'][value='"+$("#"+id+" td:eq(4)").text()+"']").attr("checked",true); 
    }
    function del(id){
		$.xconfirm("删除后无法恢复，确定要删除此条记录么？",function(data){
 			if(data){
				$.xloading(1);
				$.post($.gu("groupManager"),{type:'del',id:id},function(data1){
					if(data1==0){
						$.xloading(0);
						$.xalert("删除失败");
					}else{
						window.location.reload();
					}
				}); 
			} 
		});
    }
    $abg={};
    $abgshouji={};
        	$abg["2"]="0,341,343,344,365,366,367,369,372,375";
    	$abgshouji["2"]="0,13368221916,13983048059,13036315027,13628371104,13212321212,13647696268,18983800300,18680883474,13996335120";
        	$abg["3"]="0,367,369,372,375";
    	$abgshouji["3"]="0,13647696268,18983800300,18680883474,13996335120";
        function sel(gid){
        $("#gid").val(gid);
    	$('#my-select').val($abg[gid].split(","));
    	$('#my-select').multiSelect("refresh");
    	$("#m1").modal({backdrop:"static",keyboard:false,show:true}).on("hide.bs.modal",function(){});
    }

    function sendsms(gid){
		var str="<input type='text' id='sendsms' class='form-control' placeholder='输入短信内容' required autocomplete='off'><br><br><button class='btn btn-info btn-xs'  id='sms_yes'>确定</button>&nbsp;&nbsp;<button class='btn btn-default btn-xs'  id='sms_close'>取消</button>";
		$.xcontent(str,function(){
			$("#sms_close").click(function(){
				$("#XPOPUPCONTENTC").remove();
				$("#XPOPUPCONTENT").remove();
			});
			$("#sms_yes").click(function(){
				location.href="sms:"+$abgshouji[gid].substring(2)+"?body="+$("#sendsms").val();
			});
		});
    }
    </script>